package com.xbongbong.callback.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.saas.enums.XbbRefTypeEnum;

import java.util.List;

/**
 * 连接器
 * 创建时间 2020/12/15 10:48 AM
 * 修改时间 2020/12/15 10:48 AM
 * @author chy
 */
public interface ConnectorProducerService {

    /**
     * 调用生产者
     * @param corpid
     * @param xbbRefTypeEnum
     * @param operate
     * @param dataIdList
     * @throws XbbException
     * 创建时间 2020/12/28 3:56 PM
     * 修改时间 2020/12/28 3:56 PM
     * @author chy
     */
    void triggerSend(String corpid, XbbRefTypeEnum xbbRefTypeEnum, String operate, List<Long> dataIdList) throws XbbException;

    /**
     * 调用生产者
     * @param corpid
     * @param xbbRefTypeEnum
     * @param operate
     * @param dataId
     * @throws XbbException
     * 创建时间 2020/12/28 3:56 PM
     * 修改时间 2020/12/28 3:56 PM
     * @author chy
     */
    void triggerSend(String corpid, XbbRefTypeEnum xbbRefTypeEnum, String operate, Long dataId) throws XbbException;

    /**
     * 数据拉取
     * @param corpid
     * @throws XbbException
     */
    void historyDataInit(String corpid) throws XbbException;
}
